import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
// 懒加载插件
import lazyPlugin from 'vue3-lazy'
// 自定义指令
import directive from '@/components/index'
import '@/assets/scss/index.scss'

createApp(App)
  .use(lazyPlugin, {
    loading: require('@/assets/images/default.png'),
    error: 'error.png'
  })
  .use(store)
  .use(router)
  .use(directive)
  .mount('#app')
